package com.ryskoo.util;

import com.ryskoo.catering.productattr.domain.ProductAttrPO;
import com.ryskoo.catering.productspec.domain.ProductSpecPO;
import com.ryskoo.common.dto.BasicDTO;

import java.util.List;

/**
 * @author JackHou
 *
 * 前台使用的是vue框架，不能直接转为ProductDTO
 *  所以此类 是用于前台与后台交互时的封装类
 *
 */
public class ProductInteractiveDTO extends BasicDTO {
    private static final long serialVersionUID = -4844671670615500995L;
    /* 菜品名称 */
    private String name;
    /* 菜品备注 */
    private String note;
    /* 菜品价格 */
    private double price;
    /* 菜品促销类型 */
    private int promotionType;
    /* 菜品促销价格 */
    private double promotionPrice;
    private double promotionRate;
    /* 餐盒费用 */
    private double lunchboxPrice;
    /* 赠送积分 */
    private int integral;
    /* 菜品上下架状态 */
    private boolean state;
    /* 菜品标签 */
    private String tag;
    /* 菜品分类uuid */
    private String categoryUuid;
    /* 菜品所属推荐分类uuid （暂无用）*/
    private String recommendCategoryUuid;
    /* 菜品所属商户uuid */
    private String vendorUuid;
    /* 是否是多规格商品 */
    private boolean isSpec;
    /* 菜品口味数组  （暂无用）*/
    private String[] extendStr;
    /* 多规格  （暂无用）*/
    private List<ProductSpecPO> specData;
    /* 商品多图片的url数组 */
    private String[] mutipicture;

    /* 商品规格属性集合（包括规格和非规格） */
    private List<ProductAttrPO> attrs;

    public String[] getMutipicture() {
        return mutipicture;
    }

    public double getPromotionRate() {
		return promotionRate;
	}

	public void setPromotionRate(double promotionRate) {
		this.promotionRate = promotionRate;
	}

	public void setMutipicture(String[] mutipicture) {
        this.mutipicture = mutipicture;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getCategoryUuid() {
        return categoryUuid;
    }

    public void setCategoryUuid(String categoryUuid) {
        this.categoryUuid = categoryUuid;
    }

    public String getVendorUuid() {
        return vendorUuid;
    }

    public void setVendorUuid(String vendorUuid) {
        this.vendorUuid = vendorUuid;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public boolean isSpec() {
        return isSpec;
    }

    public void setSpec(boolean spec) {
        isSpec = spec;
    }

    public String[] getExtendStr() {
        return extendStr;
    }

    public void setExtendStr(String[] extendStr) {
        this.extendStr = extendStr;
    }

    public double getPromotionPrice() {
        return promotionPrice;
    }

    public void setPromotionPrice(double promotionPrice) {
        this.promotionPrice = promotionPrice;
    }

    public double getLunchboxPrice() {
        return lunchboxPrice;
    }

    public void setLunchboxPrice(double lunchboxPrice) {
        this.lunchboxPrice = lunchboxPrice;
    }

    public String getRecommendCategoryUuid() {
        return recommendCategoryUuid;
    }

    public void setRecommendCategoryUuid(String recommendCategoryUuid) {
        this.recommendCategoryUuid = recommendCategoryUuid;
    }

    public int getPromotionType() {
        return promotionType;
    }

    public void setPromotionType(int promotionType) {
        this.promotionType = promotionType;
    }

    public List<ProductSpecPO> getSpecData() {
		return specData;
	}

	public void setSpecData(List<ProductSpecPO> specData) {
		this.specData = specData;
	}

	public List<ProductAttrPO> getAttrs() {
		return attrs;
	}

	public void setAttrs(List<ProductAttrPO> attrs) {
		this.attrs = attrs;
	}

	public int getIntegral() {
        return integral;
    }

    public void setIntegral(int integral) {
        this.integral = integral;
    }
}
